home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Tools / PNG_dt / Install-PNG < prev    next >
Text File  |  1996-02-21  |  1KB  |  46 lines

  1. ; $VER: InstallPNG 1.0
  2. ; Cloanto PNG DataType Installer Script
  3. ; Copyright © 1995 Cloanto Italia srl
  4. ; Cloanto is a registered trademark of Cloanto Italia srl
  5. ; "Installer and Installer project icon Copyright © 1991-1993 Commodore-Amiga, Inc. All Rights Reserved
  6. ;  Reproduced and distributed under license from Commodore"
  7. ; New installer icon design Copyright © 1994 Cloanto Italia srl
  8.  
  9. (if (< (/ (getversion "icon.library" (resident)) 65536) 39) (message "\nDataTypes require Amiga OS 3.0 or higher."))
  10.  
  11. (if (AND (>= (+ (database "cpu")) 68020) (= (exists "Classes/DataTypes/png.datatype.020") 1))
  12.     (set png_datatype "png.datatype.020")
  13.     (set png_datatype "png.datatype")
  14.     )
  15.  
  16. (working "Installing PNG DataType")
  17.  
  18. (if (<> (exists "SYS:Classes") 2) (makedir "SYS:Classes" (infos)) )
  19.  
  20. (copyfiles
  21.     (prompt "Copying Format Descriptor")
  22.     (help @copyfiles-help)
  23.     (source "Devs/DataTypes")
  24.     (dest "DEVS:DataTypes")
  25.     (all)
  26.     (infos)
  27.     (optional "nofail" "force")
  28.     (confirm)
  29. )
  30.  
  31. (copylib
  32.     (prompt "Copying PNG DataType")
  33.     (help @copylib-help)
  34.     (source (tackon "Classes/DataTypes" png_datatype))
  35.     (dest "SYS:Classes/DataTypes")
  36.     (newname "png.datatype")
  37.     (optional "nofail" "force")
  38.     (confirm)
  39.     )
  40.  
  41. (run "C:AddDataTypes QUIET REFRESH")
  42.  
  43. (message "\nInstallation complete.\n\nDouble-click on \"Test.png\" to test.")
  44.  
  45. (exit (quiet))
  46.